<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2021 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
declare (strict_types=1);

namespace app\driver;


use think\db\Query as ThinkQuery;

/**
 * 自定义查询类
 * 在config/database.php/connections..mysql..
 * =>'connections'=>[
 *   'mysql' =>[
 *       // 自定义查询类
 *      'query' => '\sources\driver\Query',
 *    ],
 * ],
 */
class Query extends ThinkQuery
{
    
    public function top($num)
    {
        return $this->limit($num)->select();
    }
    
}
